package cn.lijiajia3515.cairo.auth.modules;

import cn.lijiajia3515.cairo.auth.CairoAuthentication;
import cn.lijiajia3515.cairo.domain.CairoAccount;
import cn.lijiajia3515.cairo.feign.configuration.BasicFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;


public interface AuthenticationInterface {

    @GetMapping("/authentication")
    CairoAuthentication authentication(@RequestHeader(name = HttpHeaders.AUTHORIZATION) String authorization);

    @GetMapping("/account")
    CairoAccount account(@RequestHeader(name = HttpHeaders.AUTHORIZATION) String authorization);
}
